<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
    <title><?php echo $title; ?></title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <link href="<?php echo base_url();?>css/style.css"  rel="stylesheet" type="text/css" />
    <?php if(isset($style)){ ?><link href="<?php echo base_url();?>css/<?php echo $style; ?>.css"  rel="stylesheet" type="text/css" /><?php } ?>
    
    <script src="<?php echo base_url();?>js/jquery.js" type="text/javascript" language="Javascript"></script>
    <script src="<?php echo base_url();?>js/functions.js" type="text/javascript" language="Javascript"></script>
    <script src="<?php echo base_url();?>js/ajax.js" type="text/javascript" language="Javascript"></script>
    <script src="<?php echo base_url();?>js/widgets.js" type="text/javascript" language="Javascript"></script>
    <script src="<?php echo base_url();?>js/menu.js" type="text/javascript" language="Javascript"></script>
    <script src="<?php echo base_url();?>js/load.js" type="text/javascript" language="Javascript"></script>
    <script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script> 
    
    <!--  TagCloud -->
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js" type="text/javascript"></script>
    <script src="<?php echo base_url();?>js/jimpl_cloud.js" type="text/javascript"></script>
    <script type="text/javascript">$(function() {$('#tagcloud').tagCloud({separator: '.'});});</script>
    <!--  TagCloud -->
    
</head>
  <body>
    <div id="menu_topo">
            <div class="logo"><img src="<?php echo base_url(); ?>img/logo.png" ></div>
            <div class="busca">
                <input type="text" name="busca" value="Dê dicas, pergunte e busque..." size="40" onfocus="limparPadrao(this);" onblur="escreverPadrao(this);" >
                <ul class="icones">
                    <?php
                    echo "<li>" . img(array('src' => 'img/icon-search/hint.png','alt' => 'Hint','width' => '16','height' => '16','title' => 'Hint')) . "</li>"; 
                    echo "<li>" . img(array('src' => 'img/icon-search/question.png','alt' => 'Pergunta','width' => '16','height' => '16','title' => 'Pergunta')) . "</li>"; 
                    echo "<li>" . img(array('src' => 'img/icon-search/search.png','alt' => 'Procurar','width' => '16','height' => '16','title' => 'Procurar')) . "</li>"; 
                    ?>
                </ul>
            </div>
            <?php if(isset($SESSION) === TRUE){ ?>
            <div class="sair"><?php echo anchor('home/logout', 'Sair'); $usuario_logado = $usuario_logado[0];?></div>
            <div class="perfil" id="user" style="cursor: pointer;">
                <ul class="topnav">
                    <li>
                        <a href="javascript:void[0];">
                        <?php echo img(array("src" => 'upload/thumbs/' . $usuario_logado->avatar, 'title' => $usuario_logado->username, 'width' => 25));?>
                        <p><?php echo $usuario_logado->username;  ?></p>
                        </a>
                        <ul class="subnav">
                            <li><?php echo  anchor('usuario/editarPerfil', 'Editar Perfil') ; ?></li>
                            <li><?php echo  anchor('usuario/listaSeguidos', 'Você Acompanha') ; ?></li>
                            <li><?php echo  anchor('usuario/listaSeguidores', 'Acompanham Você') ; ?></li>
                            <li><?php echo  anchor('home/logout', 'Sair') ; ?></li>
                        <ul>
                    </li>
                </ul>
            </div>
            <div class="link">
                <ul>
                    <?php
                    echo "<li>" . anchor('usuario/dashboard', img(array('src' => 'img/icon-top/home.png','alt' => 'Home','width' => '30','height' => '30','title' => 'Home'))) . "</li>"; 
                    echo "<li>" . anchor('usuario/profile/' . $usuario_logado->idUsuario, img(array('src' => 'img/icon-top/profile.png','alt' => 'Perfil','width' => '30','height' => '30','title' => 'Perfil'))) . "</li>"; 
                    echo "<li>" . anchor('usuario/mensagens', img(array('src' => 'img/icon-top/mesage.png','alt' => 'Mensagens','width' => '30','height' => '30','title' => 'Mensagens'))) . "</li>";
                    ?>
              </ul>
            </div>
            <?php } ?>
    </div>
    <div id="geral">  